home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / gnuwget.zip / wget-1.4.3 / src / mtch.h < prev    next >
C/C++ Source or Header  |  1997-01-17  |  1KB  |  35 lines

  1. /* Header file for globbing routines, originally a part of GNU bash
  2.    Copyright (C) 1991, 1995, 1996 Free Software Foundation, Inc.
  3.    
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2 of the License, or
  7.    (at your option) any later version.
  8.    
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.    
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18.  
  19. #ifndef MTCH_H
  20. #define MTCH_H
  21.  
  22. /* Bits set in the FLAGS argument to `fnmatch'.  */
  23. #define    FNM_PATHNAME    (1 << 0)/* No wildcard can ever match `/'.  */
  24. #define    FNM_NOESCAPE    (1 << 1) /* Backslashes don't quote special chars.  */
  25. #define    FNM_PERIOD    (1 << 2) /* Leading `.' is matched only explicitly.  */
  26. #define    __FNM_FLAGS    (FNM_PATHNAME|FNM_NOESCAPE|FNM_PERIOD)
  27.  
  28. /* Value returned by `fnmatch' if STRING does not match PATTERN.  */
  29. #define    FNM_NOMATCH    1
  30.  
  31. int fnmatch PARAMS((const char *, const char *, int));
  32. int has_wildcards PARAMS((const char *));
  33.  
  34. #endif /* MTCH_H */
  35.